package com.ruoyi.station.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 设备附加属性对象 device_add_properties
 *
 * @author ruoyi
 * @date 2021-08-10
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "设备附加属性实体类")
@TableName("s_device_add_properties")
public class SDeviceAddProperties
{
    private static final long serialVersionUID=1L;

    /** 主键ID */
    @ApiModelProperty(value = "${comment}" )
    @TableId(value="ID" ,type = IdType.ASSIGN_UUID)
    private String id;

    /** 设备ID */
    @Excel(name = "设备ID" )
    @ApiModelProperty(value = "设备ID" )
    private String equipmentIdKey;

    /** 属性名 */
    @Excel(name = "属性名" )
    @ApiModelProperty(value = "属性名" )
    private String deviceName;

    /** 属性条件 */
    @Excel(name = "属性条件" )
    @ApiModelProperty(value = "属性条件" )
    private String deviceCondition;

    /** 属性单位 */
    @Excel(name = "属性单位" )
    @ApiModelProperty(value = "属性单位" )
    private String unit;

    /** 数据源 */
    @Excel(name = "数据源" )
    @ApiModelProperty(value = "数据源" )
    private String dataSource;

    /** 属性值 */
    @Excel(name = "属性值" )
    @ApiModelProperty(value = "属性值" )
    private String value;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志" )
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

}
